package com.hqyj.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 项目:demo-springboot-230701
 * 描述:
 * 时间:2023/9/25 11:20
 * 作者:admin
 * 版本:1.0
 **/
@Data
@PropertySource(value = "classpath:test.properties")
@Component
public class Test {
    //邮箱
    @Value("${email}")
    private String dd;
}
